<%--
  Created by IntelliJ IDEA.
  User: 许娜
  Date: 2022/1/12
  Time: 19:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>菜品管理</title>
</head>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<body>
<br/>
<%--<jsp:include page="top.jsp"></jsp:include>--%>
<table border="1px" style="margin: auto;width: 80%" bgcolor="#CCFFCC">
    <tr>
        <th align="center">菜品名称</th>
        <th align="center">菜品类别</th>
        <th align="center">原料</th>
        <th align="center">单价</th>
        <th align="center">说明</th>
        <th align="center">&nbsp;</th>
        <th align="center">&nbsp;</th>
    </tr>
    <c:forEach items="${list}" var="cp">
        <tr>
            <td bgcolor="#FFE3BB" align="center" height="20">${cp.cpmc}</td>
            <td bgcolor="#FFE3BB" align="center" height="20">${cp.cplb.cpname}</td>
            <td bgcolor="#FFE3BB" align="center" height="20">${cp.yl}</td>
            <td bgcolor="#FFE3BB" align="center" height="20">${cp.dj}</td>
            <td bgcolor="#FFE3BB" align="center" height="20">${cp.shm}</td>
            <td bgcolor="#FFE3BB" align="center" height="20"><a href="/cplb/updateLb.do?id=${lb.id}">修改</a></td>
            <td bgcolor="#FFE3BB" align="center" height="20"><a href="/cplb/toUpdateLb.do?id=${lb.id}">删除</a></td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="7" align="center" bgcolor="#FFE3BB" align="center" colspan="6" height="25">
            <a href="/cp/toTj.do">添加菜品</a>
        </td>
    </tr>
</table>
</body>
</html>
